
# coding=utf8
# 命令行参数读取  optpase modeul (未测试) 

def TestOptionparser():
    from optparse import OptionParser
    parser = OptionParser()
    parser.add_option("-f", "--file", dest="filename",
                    help="write report to FILE", metavar="FILE")
    parser.add_option("-q", "--quiet",
                    action="store_false", dest="verbose", default=True,
                    help="don't print status messages to stdout")
    (options, args) = parser.parse_args()
    print (options.filename)
    print (options.verbose)
    print (args)